app.factory('loginService', [ '$resource', function($resource) {
    return $resource( '/login/:action',{
        action : '@action'
    },{

    });
} ]);